<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Svg</title>
    <style>
        .container{
            width: 800px;
            height: 400px;
            background-color: gray;
        }
    </style>
</head>
<body>
    <svg class="container">

        <!-- 线段 -->
    <line x1="100" y1="100" x2="200" y2="200" stroke="pink" />
    <line x1="150" y1="100" x2="250" y2="200" stroke="pink" />
        <!-- 折线 -->
        <polyline
        points="
        300 100
        400 100
        400 200
        300 150
      "
      fill-opacity="0"
      stroke="#000"
        />

           <!-- 矩形 -->
      <rect x="450" y="100" width="100" height="200" fill-opacity="0" stroke="#000" />

            <!-- 圆 -->
            <circle cx="650" cy="150" r="50" fill-opacity="0" stroke="#000" />

            <!-- 椭圆 -->
            <ellipse cx="120" cy="300" rx="100" ry="50" fill-opacity="0" stroke="#000" />
      
    </svg>
</body>
</html>